
public class one {

    public static void main(String[] args){

        try {
            throw new MyException("my exception");
        } catch (MyException e) {
            System.out.println(e.getMessage());
        }

    }

}
